import axios from "../helper/axios";

export async function getOnlineUserList(params) {
  try {
    const result = await axios.get('/users/list', {params});
    return Promise.resolve(result.data);
  } catch (err) {
    return Promise.reject(err.response.data);
  }
}

export async function getChatContentList(params) {
  try {
    const result = await axios.get('/chats/list', {params});
    return Promise.resolve(result.data);
  } catch (err) {
    return Promise.reject(err.response.data);
  }
}

